package com.wkbb.common.dto.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class SmartOrderDto {

    @ApiModelProperty(value = "服务类别ID")
    private Long productId;

    @ApiModelProperty(value = "服务类别")
    private String productName;

    @ApiModelProperty(value = "订单编号")
    private String tradeNo;

    @ApiModelProperty(value = "机构ID")
    private Long orgId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "openId")
    private String openId;

    @ApiModelProperty(value = "线上线下")
    private Short onlineType;

    @ApiModelProperty(value = "单价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "付款状态")
    private Short status;

    @ApiModelProperty(value = "套餐类型")
    private Short commodityStatus;

    @ApiModelProperty(value = "班级ID")
    private Long classId;

    @ApiModelProperty(value = "订单ID")
    private Long payOrderId;

    @ApiModelProperty(value = "订单来源(1微信支付,2小鹅通,3后台导入)")
    private Short orderSourceType;

    @ApiModelProperty(value = "支付时间")
    private String paymentTime;

    @ApiModelProperty(value = "审核时间")
    private String auditTime;

    @ApiModelProperty(value = "生效时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date timeStart;

    @ApiModelProperty(value = "失效时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date timeEnd;

}
